package com.briup.cms.utils;

/**
 * 统一给前端返回的数据结构
 */
public class Message {
    // 响应状态码
    private Integer status;
    // 响应信息
    private String message;
    // 响应携带的数据，可以为null
    private Object data;

    public Message(Integer status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
